package com.dz.userService.impl;

import com.dz.Mapper.goodsDao;
import com.dz.domain.goods;
import com.dz.userService.goodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class goodsServiceImpl implements goodsService {

    @Autowired
    goodsDao goodsdao;

    @Override
    public List<goods> findAllGoods(goods g) {
        return goodsdao.findAllGoods(g);
    }

    @Override
    public int delGoodsInfo(int goodsId) {
        return goodsdao.delGoodsInfo(goodsId);
    }

    @Override
    public int insertGoods(goods g) {
        return goodsdao.insertGoods(g);
    }

    @Override
    public int upDataGoodsInfo(goods g) {
        return goodsdao.upDataGoodsInfo(g);
    }
}
